package com.codez;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.codez.domain.Menu;
import com.codez.service.MenuService;

/**
 *  @author codez
 *	@createTime 2019-04-19 03:56:52
 */
public class Test {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("classpath:dubbo.xml");
		MenuService service = context.getBean(MenuService.class);
		List<Menu> findAll = service.findAll();
		for (Menu menu : findAll) {
			System.err.println(menu);
		}
		service.findById(2);
	}
	
}
